#ifndef NEWDOWNLOADWINDOW_H
#define NEWDOWNLOADWINDOW_H
#include <QDialog>
#include <QLabel>
#include <QLineEdit>
#include <QFileDialog>
#include <QSlider>
#include <iostream>

class NewDownloadWindow :
        public QDialog
{
    Q_OBJECT
    QFileDialog * dialog;
    QLineEdit* urlLineEdit;
    QSlider * prioritySlider;
    QLineEdit * directoryEdit;
public:
    NewDownloadWindow(QWidget *parent, const QString& folder);
    ~NewDownloadWindow();
public slots:
    void startDownload();
signals:
    void newDownload(const QString &folder,
                     const QString &fileName,
                     const QString &URL,
                     int priority);
private:
    void prepareDownload();
};

class PriorityLabel :
        public QLabel
{
    Q_OBJECT
public:
    PriorityLabel();
public slots:
    void setPriority(int p);
};

#endif // NEWDOWNLOADWINDOW_H
